﻿@using JinRi.WebHost.ViewModels
@model JinRi.WebHost.ViewModels.AboutModel
@{
    ViewBag.Title = "今日动画";
    var awards = ViewBag.Awards as List<AwardModel>;
}

@if (@Model.BannerImageId != Guid.Empty)
{
    <div class="banner">
        <img src="@Url.Action("Get", "Image", new { id = Model.BannerImageId })" />
    </div>
}


<div class="container clearfix">
    <h2 class="title">公司简介</h2>
    <div class="hr"></div>
    <div class="content">
        @Html.Raw(Model.Introduce)
    </div>
    <h2 class="title">创始人介绍</h2>
    <div class="hr"></div>
    <div class="content clearfix">
        <div class="lt">
            <div class="master">@Model.Name</div>
            <div>@Model.Title</div>
            @Html.Raw(Model.Content)
        </div>
        <div class="rt">
            @if (@Model.ImageId != Guid.Empty)
            {
                <div class="banner">
                    <img src="@Url.Action("Get", "Image", new { id = Model.ImageId })" />
                </div>
            }
        </div>
    </div>
    <h2 class="title">公司获得的奖项</h2>
    <div class="hr"></div>
    @foreach (var award in awards)
    {
        <div class="product clearfix">
            <div class="poster">
                <img src="@Url.Action("Get", "Image", new { id = award.ImageId })" />
            </div>
            <div class="product-title">@award.Title</div>
            @Html.Raw(award.Content)
        </div>
    }
    <div class="award">
        <img src="~/Images/about-award1.png" />
        <img src="~/Images/about-award2.png" />
        <img src="~/Images/about-award3.png" />
        <img src="~/Images/about-award4.png" />
    </div>
    <div class="hr"></div>
</div>
